package gmail.pyanoveugen.studyproject.service;

import java.sql.Connection;

public class ServiceFactory {

    private static ServiceFactory instance;
    private Connection connection;

    public static ServiceFactory getInstance() {
        if (instance == null) {
            instance = new ServiceFactory();
        }

        return instance;
    }

    private ServiceFactory() {
        //TODO: load driver
        //TODO: connect to DB
//        connection = ...
    }

    public AuthService getAuthService() {
        return new AuthService();
    }

}
